package org.dromara.ai.domain.bo;

import org.dromara.ai.domain.AiComment;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 评论业务对象 ai_comment
 *
 * @author Tang
 * @date 2024-12-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AiComment.class, reverseConvertGenerate = false)
public class AiCommentBo extends BaseEntity {

    /**
     * 评论ID
     */
    @NotNull(message = "评论ID不能为空", groups = { EditGroup.class })
    private Long commentId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 作品ID
     */
    @NotNull(message = "作品ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long workId;

    /**
     * 父评论ID
     */
    @NotNull(message = "父评论ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentCommentId;

    /**
     * 评论内容
     */
    @NotBlank(message = "评论内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;


}
